<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>司机信息</title>
        <link rel="stylesheet" href="/Public/Leader/css/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="/Public/Leader/css/index.css" />
        <style type="text/css">
            .order-list a {
                position: relative;
            }
            .order-list span {
                float: right;
                margin-right: 20px;
            }
            .pagination ul {
                display: inline-block;
                margin-left: 0;
                margin-bottom: 0;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                border-radius: 3px;
                -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
                -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            }
            .pagination ul > li {
                display: inline;
            }
            .pagination ul > li > a, .pagination ul > li > span {
                float: left;
                padding: 0 14px;
                line-height: 38px;
                text-decoration: none;
                background-color: #ffffff;
                border: 1px solid #dddddd;
                border-left-width: 0;
            }
        </style>
    </head>
    <body>
        <style>
    .pagination .current{
        float: left;
    padding: 0 14px;
    line-height: 38px;
    text-decoration: none; 
    border-left-width: 0;
    }
        
</style>
<div id="topbar" class="top-navigation dark-bg ">
            <nav class="navbar   dark-bg " role="navigation" style="width:85%;margin:auto;">
                <div class="navbar-header" style="width:200px;">
                    <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                        <i class="fa fa-reorder"></i>
                    </button>
                    <a class="navbar-brand" href="<?php echo U('Index/index');?>">小易出行</a>
                </div>
                <div class="navbar-collapse collapse" id="navbar">
                    <ul class="nav navbar-nav dark-bg">
                        

                        <li <?php if($table == 'index'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Index/index');?>"> 首页</a>
                        </li>

                        <li <?php if($table == 'order'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Order/orderadmin');?>">订单管理</a>
                        </li>

                        <li <?php if($table == 'pay'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Pay/paycount');?>">交易中心</a>
                        </li>
                        <li <?php if($table == 'article'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Article/lst');?>">文章</a>
                        </li>
                        <li <?php if($table == 'wx'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Wx/wx_menu/wid/1');?>">微信管理</a>
                        </li>
                        <li <?php if($table == 'line'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Line/lineadmin');?>">线路管理</a>
                        </li>
                        <li <?php if($table == 'user'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('User/userinfo');?>">用户管理</a>
                        </li>
                        <li <?php if($table == 'useradmin'): ?>class="active"<?php endif; ?>>
                            <a href="<?php echo U('Useradmin/userinfo');?>">系统管理</a>
                        </li>

                    </ul>
                    <ul class="nav navbar-top-links navbar-right">
                        <li class="dropdown">
                            <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown" style="position:relative;" onclick="$(this).find('span').toggleClass('deg180')">
                                <name style="width: 80px;white-space:nowrap;overflow:hidden;text-overflow: ellipsis;display: block;text-align: center"><?php echo session('username');?></name>
                                <span class="caret" style="position: absolute;top: 22px;right: 12px;"></span></a>
                            <ul role="menu" class="dropdown-menu">
                                <li>
                                    <a onclick="return confirm('您确定要退出吗？')" tabindex="-1" href="<?php echo U('Login/Logout');?>">退出</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
        </div>
        <div class="wrapper main-wrapper wrapper-content ">
            <div class="page-menubar">
                <div class="menu-header">用户管理</div>
                <ul class="order-list">
                    <li>
                        <a href="<?php echo U('User/userinfo');?>">用户信息</a>
                    </li>
                    <li class="active">
                        <a href="<?php echo U('User/sijiinfo');?>">司机信息</a>
                    </li>
                    <li>
                        <a href="<?php echo U('User/fankui_list');?>">用户反馈</a>
                    </li>



                </ul>
            </div>
            <!--主要内容-->
            <div class="page-content" style="display: block;">
                <!--内容标题-->
                <div class="page-heading" style="position:relative;">
                    <h2>司机列表</h2>
                     <a  href="<?php echo U('User/addsiji');?>" class="btn btn-primary" style="position:absolute;right: 0;top: 10px;">添加司机</a>
                </div>
                <div class="page-toolbar row m-b-sm m-t-sm">
                    <div class="col-sm-6 pull-right">
                        <form action="" method="post">
                            <div class="input-group">
                                <input type="text" class="form-control input-sm" name="keyword" value="" placeholder="可搜索姓名/手机号">                                <span class="input-group-btn">
                                    <button class="btn btn-sm btn-primary" type="submit"> 搜索</button>
                                </span>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="panel panel-default" style="margin-top: 20px;">
                    <div class="panel-body">
                        <table class="table table-hover table-responsive">
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>姓名</th>
                                    <th>电话</th>
                                    <th>城市</th>
                                    <th>身份证账号</th>
                                     <th>审核状态</th>
                                    <th style="min-width: 64px;">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($siji)): $i = 0; $__LIST__ = $siji;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                    <th><?php echo ($vo["id"]); ?></th>
                                    <td><?php echo ($vo["xingming"]); ?></td>
                                    <td><?php echo ($vo["dianhua"]); ?></td>
                                    <td><?php echo ($vo["city"]); ?></td>
                                    <td><?php echo ($vo["card_sf"]); ?></td>
                                    <td>
                                        <?php if($vo["status"] == 1): ?><span style="color:green;">【通过】</span>
                                            <?php elseif($vo["status"] == 2): ?>
                                            <span style="color:red;">【不通过】</span>
                                            <?php else: ?>
                                            <span style="color:orange;">【待审核】</span><?php endif; ?>
                                    </td>
                                    <td>
                                        <a href="javascript:void(0);" class="sijixg" title="修改" data-url="<?php echo U('sijixg',array('openid'=>$vo['openid']));?>"><i class="glyphicon glyphicon-pencil"></i></a>
                                        <a href="javascript:void(0);" class="shijishow" title="查看详情" data-url="<?php echo U('sijishow',array('openid'=>$vo['openid']));?>"><i class="glyphicon glyphicon-eye-open"></i></a>
                                        <a href="javascript:void(0);" class="sijicheck" title="审核" data-url="<?php echo U('sijicheck',array('openid'=>$vo['openid']));?>"><i class="glyphicon glyphicon-lock"></i></a>
                                        <a onclick="return confirm('正在删除用户，请确认')" title="删除" href="/admin.php/user/delsj/id/<?php echo ($vo["id"]); ?>"><i class="glyphicon glyphicon-remove-sign"></i></a>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                    </div>
                    <?php echo ($page); ?>
                </div>
            </div>
        </div>
    </body>
    <script src="/Public/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/Leader/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/Public/layer/layer.js" type="text/javascript" charset="utf-8"></script>
    <script>
         $(function () {
             //司机check
             $(".sijicheck").on("click", function () {
                 var data_url = $(this).attr("data-url");
                 layer.open({
                     type: 2,
                     title: '司机的详细详细',
                     shadeClose: false,
                     shade: 0.8,
                     area: ['30%', '30%'],
                     content: data_url //iframe的url
                 });
             });

             //司机的详细信息
             $(".shijishow").on("click", function () {
                 var data_url = $(this).attr("data-url");
                 layer.open({
                     type: 2,
                     title: '司机的详细详细',
                     shadeClose: false,
                     shade: 0.8,
                     area: ['90%', '80%'],
                     content: data_url //iframe的url
                 });
             });

             //修改司机的信息
            $(".sijixg").on("click",function(){
                var data_url = $(this).attr("data-url");
                layer.open({
                    type: 2,
                    title: '修改司机的信息',
                    shadeClose: false,
                    shade: 0.8,
                    area: ['90%', '80%'],
                    content: data_url, //iframe的url
                    cancel: function(){
                        location.reload();
                    }
                });
            });

         });

    </script>
</html>